<?php
defined('MCACHE_DEBUG')             || define('MCACHE_DEBUG', false);
defined('MCACHE_DEV_SERVER')        || define('MCACHE_DEV_SERVER', false);
defined('MCACHE_CONNECT_TIMEOUT')   || define('MCACHE_CONNECT_TIMEOUT', 1);

defined('MCACHE_DMZ_XFZJ')    || define('MCACHE_DMZ_CSGAME', 'mcache_dmz_csgame');
/*开启防刷*/
define('POST_VOTE',true);
//资源图
defined('MCACHE_DMZ_CS_TIME') || define('MCACHE_DMZ_CS_TIME', 60*60);
//推荐情侣
define('MCACHE_DMZ_LOVERS_TIME',60);

/**** getCacheServer start **************************/
function &getCacheServer($const_server)
{

    $ret = array();

    switch ($const_server) 
    {
        case MCACHE_DMZ_CSGAME:
        	/*本地开发*/            
//            $ret[0] = array( 'host' => '192.168.57.138', 'port' => 11212);
			/*外网测试*/
//        	$ret[0] = array( 'host' => '10.11.13.187', 'port' => 11212);
        	/*发布*/
			$ret[0] = array( 'host' => '10.10.8.205', 'port' => 11212);	
			$ret[1] = array( 'host' => '10.10.8.204', 'port' => 11212);	
            break;
         default:
            if (MCACHE_DEBUG) { var_dump(func_get_args()); }
    }

    return $ret;
}